package com.rimi.service.impl;

import com.rimi.bean.CarouselMap;
import com.rimi.bean.CommentSharing;
import com.rimi.bean.Doctor;
import com.rimi.bean.News;
import com.rimi.mapper.IndexMapper;
import com.rimi.service.IndexService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @version V1.0
 * @Description: 用一句话描述该文件做什么
 * @date 2021/7/5 19:27
 */
@Service
@Slf4j
public class IndexServiceImpl implements IndexService {
    @Autowired
    IndexMapper indexMapper;

    @Override
    public List<Doctor> findDoctors() {
        return indexMapper.findDoctor();
    }

    @Override
    public List<News> search(String str) {
        return indexMapper.search(str);
    }

    @Override
    public List<CommentSharing> findCommentSharing() {
        return indexMapper.findCommentSharing();
    }

    @Override
    public List<CarouselMap> findNewsById() {
        return indexMapper.findNews();
    }

    @Override
    public List<CommentSharing> findCommentDetails(String name) {
        return indexMapper.findCommentDetails(name);
    }
}
